package com.github.thinwonton.showcase.springboot.springbatch.sample1;

import org.springframework.batch.item.ItemWriter;

import java.util.List;

/**
 * 把转为大写的字符串输出到控制台
 */
public class Writer implements ItemWriter<String> {

    @Override
    public void write(List<? extends String> items) throws Exception {
        for (String msg : items) {
            System.out.println("Writer write something.");
            System.out.println("Writing the data " + msg);
        }
    }

}